/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-23
 * Time:11:15
 */
public class PC {
    private CPU cpu;
    private HardDisk HD;

    public void setCpu(CPU cpu) {
        this.cpu = cpu;
    }

    public void setHardDisk(HardDisk HD) {
        this.HD = HD;
    }

    public void show(){
        System.out.println("speed"+this.cpu.getSpeed()+"HardDisk"+this.HD.getAmount());
    }
}
